package com.mtbu.bean;
import java.util.List;

import com.mtbu.bean.BppCata;
import com.mtbu.dao.DAOManager;
import com.mtbu.bean.base.BppCataBase;
public final class BppCata extends BppCataBase {
	private List<BppCata> sublist = null;

	public List<BppCata> getSublist() {
		return sublist;
	}

	public void setSublist(List<BppCata> sublist) {
		this.sublist = sublist;
	}
	
	public BppCata getParent() throws Exception{
		if (getPID()==0) {
			return null;
		}
		return DAOManager.bppCataDao.findBppCata(getPID());
	}
}
